<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

 <c:if test="${listFactory!=null }">
    <table border="1px">
		  <colgroup>
		    <col width="150">
		    <col width="200">
		   
		  </colgroup>
		  <thead>
		    <tr>
		      <th>药品厂家名</th>
		      <th>厂家地址</th>
		      <th>厂家电话</th>
		      <th>厂家封面</th>
		      <th>建厂时间<th>
		      <th>编辑  </th>
		      <th>查看该厂生产的药品</th>
		    </tr> 
		  </thead>
		  <tbody>
		 
		  <c:forEach items="${listFactory}"  var="factory">
		    <tr >
		      <td>${factory.name}</td>
		      <td>${factory.address }</td>
		      <td>${factory.phone }</td>
		      <td><img width="50px" height="50px" src="${APP_PATH}/img/${factory.cover}"></img></td>
		      <td>${factory.gmtCreate }</td>
		      <td></td>
		      <td><a href="${APP_PATH}/showEdit/${factory.id}">修改</a> <a href="${APP_PATH}/delete/${factory.id}">删除</a></td>
		      <td><a href="${APP_PATH}/pharmaceutical/getPharmaceutical/${factory.id}">药品管理</a></td>
		    </tr>
		  </c:forEach>
		
		  </tbody>
	</table>
	</c:if>
	<a href="${APP_PATH}/showAdd">添加厂家信息</a>

</body>
</html>